package com.cetc39.service.impl;

import java.util.List;

import com.cetc39.bean.Contract;
import com.cetc39.dao.ContractDao;
import com.cetc39.service.ContractService;

public class ContractServiceImpl implements ContractService {

	private ContractDao contractDao;
	
	@Override
	public void add(Contract c) {
		contractDao.save(c);
	}

	@Override
	public void update(Contract c) {
		contractDao.update(c);
	}

	@Override
	public void delete(int id) {
		contractDao.delete(id);
	}

	@Override
	public List<?> findAll() {
		return contractDao.findAll();
	}

	@Override
	public Contract findById(int id) {
		return contractDao.findById(id);
	}

	public void setContractDao(ContractDao contractDao) {
		this.contractDao = contractDao;
	}
	
}
